Resume Chat Stream
Resumes consumption of the active assistant generation as Server-Sent Events. If the latest message has already finished, returns a closing chat-state event. The response is `text/event-stream`; each event is `data: <JSON>\n\n` where the JSON conforms to ChatStreamEvent.
Usage
import { v0 } from 'v0-sdk'const result = await v0.chats.resume({ chatId: 'chat_abc123',})console.log(result)API Signature
Request
Path Parameters
The unique identifier of the chat.
Response (Stream)
The response is a text/event-stream. Each event is data: <JSON>\n\n where the JSON conforms to one of the following event types:
A single Server-Sent Events payload emitted by streaming chat endpoints. Each SSE event is data: <JSON>\n\n where the JSON conforms to one of the union members.
Unique chat identifier.
Chat title, if generated.
Visibility setting of the chat.
ISO timestamp of when the chat was created.
ISO timestamp of when the chat was last updated.
ID of the user who created the chat.
Associated Vercel project ID, if any.
User-defined key-value metadata.
Whether the caller has write access to this chat.
Initial and final chat-state event. Emitted once at stream open with the freshly-created chat, and once at stream close with the chat including the completed assistant message.